<%@ page language="java" contentType="text/html; charset=utf-8"
         pageEncoding="utf-8" %>
<%
    //从上一页面点击row过来，传了row id 过来1
//pageContext.setAttribute("_prePageListId",request.getParameter("_id"));
    pageContext.setAttribute("_prePageListId", request.getParameter("_id") == null ? "" : request.getParameter("_id"));
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    <title>Insert title here</title>
    <script type="text/javascript">
        var isIe = $.browser.msie;
        var valueFilterNum = 0;

        //定义全局变量记录分页信息
        var paramData = {
            page: 1,
            rows: 60,
            sortOrder: 'desc',
            sortColumn: ''
        };
        var msgOut = {};

        $(function () {
            $(pager).pagination({
                displayMsg: '<span style="color: red; margin-right: 100px;"></span>' +
                    '当前显示 {from} - {to} 条记录   共 {total} 条记录'
            });
        })

    </script>
    <style type="text/css">
        /*.condition{
            float:left;
            height:25px;
            border:1px solid #fff;
        }
        .condition .mylabel{
            width:80px;
            float:left;
            border:0px solid #fff;
        }
        .condition .myinput{
            width:150px;
            float:left;
            border:0px solid #fff;
        }
        .condition .myfilter{
            width:200px;
            float:left;
            border:0px solid #fff;
        }

        .clearboth{
            clear:both;
        }*/

    </style>
</head>

<%@taglib uri="/struts-tags" prefix="s" %>
<body>
<div class="easyui-layout" data-options="fit:true" id="conditionNorth" style="visibility:hidden;">
    <div data-options="region:'east'" style="width:100px;text-align:center; ">
        <div style="height: 2px;"></div>
        <a id='queryBtn_Filter' href='#' class='easyui-linkbutton' data-options="iconCls:'icon-search'"
           onclick='javascript:queryBtn_Filter();'>查询</a>
    </div>
    <div data-options="region:'center'" style="overflow:hidden;  padding-left: 3px;padding-top: 3px;">
        <div id="_conditionContentDiv" style="border: 0px solid red;">
            <script type="text/javascript">
                var columnPropertyArr = new Array();
                var columnPropertyTypeArr = new Array();
            </script>
            <div class="condition">
                <div class="item">
                    <label class="mylabel">区域：</label>
                    <div class="myinput">
                        <!-- 使用上一页面传过来的ID，作为查询条件，PS:查询一个公司下所有部门，在公司列表中右击查询，传_id，作为部门的外建
                        s:if test="#parameters._id!=null && #column.propertyName.indexOf('_id')!=-1"
                        -->
                        <!-- 外键：动态通过SQL取值 -->
                        <s:select
                                id="owrRegionId"
                                name="owrRegionId"
                                value="%{#attr._prePageListId}"
                                list="#attr._selectOptions4owrRegionId.list4condition"
                                listKey="keyName"
                                listValue="valueName"
                                theme="simple"
                                cssStyle="width:150px"
                                data-options="editable:false"
                                cssClass="easyui-combobox"/>

                    </div>
                    <script type="text/javascript">
                        columnPropertyArr[columnPropertyArr.length] = 'owrRegionId';
                        columnPropertyTypeArr[columnPropertyTypeArr.length] = 'combobox';
                    </script>
                </div>

            </div>
            <div class="condition">
                <div class="item">
                    <label class="mylabel">员工类型：</label>
                    <div class="myinput">
                        <!-- 数据字典取值 -->
                        <s:select
                                id="owUserType"
                                name="owUserType"
                                value=""
                                list="#attr._enumData.OwUserType4condition"
                                listKey="keyName"
                                listValue="valueName"
                                theme="simple"
                                cssStyle="width:100px"
                                data-options="editable:false"
                                cssClass="easyui-combobox"/>
                    </div>
                    <script type="text/javascript">
                        columnPropertyArr[columnPropertyArr.length] = 'owUserType';
                        columnPropertyTypeArr[columnPropertyTypeArr.length] = 'combobox';
                    </script>
                </div>

            </div>

            <div class="condition">
                <label class="mylabel">岗位ID：</label>
                <div class="myinput">
                    <select id="a2postId" name="a2postId" class="easyui-combotree" style="width:110px;"
                            data-options="url:'/zpmng//admin123/user/orgAjax_queryPostJsonTreeByCompanyId.action',editable:false">
                    </select>
                    <a href="#" class="easyui-linkbutton" data-options="plain:true,iconCls:'icon-no'"
                       onclick="javascript:clearCombotree('a2postId')"></a>
                </div>
                <script type="text/javascript">
                    columnPropertyArr[columnPropertyArr.length] = 'a2postId';
                    columnPropertyTypeArr[columnPropertyTypeArr.length] = 'combotree';
                </script>
                <!-- check is select -->

            </div>
            <div class="condition">
                <div class="item">
                    <label class="mylabel">姓名：</label>
                    <div class="myinput">
                        <input type="text" class="easyui-textbox" id="name" name="name" placeholder="模糊查询"/>
                    </div>
                    <script type="text/javascript">
                        columnPropertyArr[columnPropertyArr.length] = 'name';
                        columnPropertyTypeArr[columnPropertyTypeArr.length] = 'input';
                    </script>
                </div>

            </div>
            <div class="condition">
                <div class="dateitem">
                    <!-- 日期范围 -->
                    <label class="mylabel">创建时间：</label>
                    <div class="myinput" style="width: 420px;">
                        <input type="text" id="createdate_Start" name="createdate_Start" size='18'
                               class='easyui-datebox'/>
                        ~
                        <input type="text" id="createdate_End" name="createdate_End" size='18'
                               class='easyui-datebox'/>
                    </div>
                    <script type="text/javascript">
                        columnPropertyArr[columnPropertyArr.length] = 'createdate_Start';
                        columnPropertyArr[columnPropertyArr.length] = 'createdate_End';
                        columnPropertyTypeArr[columnPropertyTypeArr.length] = 'date';
                        columnPropertyTypeArr[columnPropertyTypeArr.length] = 'date';
                    </script>
                </div>

            </div>

            <div class="clearboth"></div>
            <div style="height: 0px;"></div>
        </div>
    </div>
</div>
</body>
</html>